home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / qbsnip.zip / MSWIND.ZIP / MSWIND.TXT < prev   
Internet Message Format  |  1997-05-22  |  4KB

  1. Date: 05-20-97  22:57
  2. From: Hans Lunsing
  3. Subj: Windows & QBasic
  4.  
  5. Hello Robin
  6.  
  7. On Sunday, 18 May 1997 12:24:28, you wrote to all:
  8.  
  9.  RK> Complex question: Does anyone out there know if there is any
  10.  RK> way to get access to any Windows processes directly from a dos
  11.  RK> program? Lots come to mind, but the first one I can think of is the
  12.  RK> clipboard?
  13.  
  14.  RK> It would be nice to use the clipboard in one step instead of
  15.  RK> losing your full screen everytime you copy or paste. Lots more
  16.  RK> comes to mind to a dedicated mouse hater.
  17.  
  18. The clipboard can be accessed through function &h17 of de multiplex
  19. interrupt (&h2F). Here are its subfunctions (taken from Ralf Brown's
  20. interrupt list):
  21.  
  22. INT 2F 1700 - MS Windows "WINOLDAP" - IDENTIFY WinOldAp VERSION
  23.  
  24. Inp.:
  25.         AX = 1700h
  26. Return: AX = 1700h if this version of WINOLDAP doesn't support clipboard
  27.         AX <> 1700h
  28.             AL = WINOLDAP major version
  29.             AH = WINOLDAP minor version
  30. Program: WinOldAp (WINOLDAP.MOD) is a Microsoft Windows extension supporting
  31.           "old" (character-mode) application access to Dynamic Data Exchange,
  32.           menus, and the Windows clipboard.
  33. Note:        this installation check DOES NOT follow the format used by other
  34.           software of returning AL=FFh
  35.  
  36. INT 2F 1701 - MS Windows "WINOLDAP" - OPEN CLIPBOARD
  37.  
  38. Inp.:
  39.         AX = 1701h
  40. Return: AX = status
  41.             nonzero success
  42.             0000h   clipboard is already open
  43. SeeAlso: AX=1700h,AX=1702h,AX=1703h,AX=1704h,INT 16/AX=CB00h
  44.  
  45. INT 2F 1702 - MS Windows "WINOLDAP" - EMPTY CLIPBOARD
  46.  
  47. Inp.:
  48.         AX = 1702h
  49. Return: AX = status
  50.             nonzero clipboard has been emptied
  51.             0000h   failure
  52.  
  53. INT 2F 1703 - MS Windows "WINOLDAP" - SET CLIPBOARD DATA
  54.  
  55. Inp.:
  56.         AX = 1703h
  57.         DX = clipboard format supported by WinOldAp (see #2005)
  58.         ES:BX -> data (see #2006,#2007)
  59.         SI:CX = size of data
  60. Return: AX = status
  61.             nonzero data copied into the Clipboard
  62.             0000h   failure
  63.  
  64. INT 2F 1704 - MS Windows "WINOLDAP" - GET CLIPBOARD DATA SIZE
  65.  
  66. Inp.:
  67.         AX = 1704h
  68.         DX = clipboard format supported by WinOldAp (see #2005)
  69. Return: DX:AX = size of data in bytes, including any headers
  70.                 0000h:0000h if no data in this format in the Clipboard
  71. Note:        Windows reportedly rounds up the size of the data to a multiple of
  72. 32
  73.           bytes
  74.  
  75. INT 2F 1705 - MS Windows "WINOLDAP" - GET CLIPBOARD DATA
  76.  
  77. Inp.:
  78.         AX = 1705h
  79.         DX = clipboard format supported by WinOldAp (see #2005)
  80.         ES:BX -> buffer
  81. Return: AX = status
  82.             nonzero success
  83.             0000h   error, or no data in this format in Clipboard
  84.  
  85. INT 2F 1708 - MS Windows "WINOLDAP" - CloseClipboard
  86.  
  87. Inp.:
  88.         AX = 1708h
  89. Return: AX = status
  90.             0000h failure
  91.             nonzero success
  92.  
  93. INT 2F 1709 - MS Windows "WINOLDAP" - COMPACT CLIPBOARD
  94.  
  95. Inp.:
  96.         AX = 1709h
  97.         SI:CX = desired size in bytes
  98. Return: DX:AX = number of bytes in largest block of free memory
  99. Note:        WinOldAp is responsible for including the size of any headers
  100.  
  101. INT 2F 170A - MS Windows "WINOLDAP" - GET DEVICE CAPABILITIES
  102.  
  103. Inp.:
  104.         AX = 170Ah
  105.         DX = GDI information index (see #2008)
  106. Return: AX = integer value of the desired item
  107.               (see #2009,#2010,#2011,#2012,#2013,#2014,#2015)
  108. Note:        This function returns the device-capability bits for the given
  109. display
  110.  
  111.  
  112. DOS applications can cooperate with Windows through function &h16 of de
  113. multiplex interrupt. See Ralf Brown's interrupt list for details.
  114.  
  115.  
  116.  
  117. Friendly greeting you,
  118. Hans Lunsing,           Fido     : 2:281/607.214
  119.                         Internet : jlunsing@doge.nl
  120.